<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        <link rel="stylesheet" href="<?php echo $this->baseUrl() ?>/css/style.css" media="screen" />
        <?php echo $this->headTitle() ?>
    </head>
    <body>
        <div id="wrapper">
            <header id="header">
                <h1><a href="<?php echo $this->baseUrl() ?>"><?php echo $this->title ?></a></h1>
            </header>
            <?php echo $this->nav(); ?>

            <div id="left">
                <?php echo $this->layout()->content ?>
            </div>
            <div id="right">
                <h4>Категории</h4>
                <ul>
                    <?php foreach ($this->categories as $category) : ?>
                        <li>
                            <a href="<?php
                                            echo $this->url(array('controller' => 'index',
                                                                  'action' => 'category',
                                                                  'id' => $category->id))
                                      ?>">
                                      <?php echo $category->title ?>
                            </a>
                        </li>
                    <?php endforeach ?>
                </ul>
            </div>
            <div class="clear"></div>
            <footer>
                <p>© <a href="#">Vavilen</a> <?php echo date('Y') ?></p>
            </footer>
        </div>
    </body>
</html>